package cn.qqncn.furniture.pojo.domain;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * furniture
 * @author 
 */
@Component
public class Furniture implements Serializable,Comparable<Furniture> {
    /**
     * 家具id
     */
    private Integer furnitureId;

    /**
     * 家具名称
     */
    private String furnitureName;

    /**
     * 描述
     */
    private String describe;

    /**
     * 类别id
     */
    private Integer categoryId;

    /**
     * 图片
     */
    private String furnitureImg;

    /**
     * 价格
     */
    private Double price;

    private static final long serialVersionUID = 1L;

    public Integer getFurnitureId() {
        return furnitureId;
    }

    public void setFurnitureId(Integer furnitureId) {
        this.furnitureId = furnitureId;
    }

    public String getFurnitureName() {
        return furnitureName;
    }

    public void setFurnitureName(String furnitureName) {
        this.furnitureName = furnitureName;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getFurnitureImg() {
        return furnitureImg;
    }

    public void setFurnitureImg(String furnitureImg) {
        this.furnitureImg = furnitureImg;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Furniture{" +
                "furnitureId=" + furnitureId +
                ", furnitureName='" + furnitureName + '\'' +
                ", describe='" + describe + '\'' +
                ", categoryId=" + categoryId +
                ", furnitureImg='" + furnitureImg + '\'' +
                ", price=" + price +
                '}';
    }

    @Override
    public int compareTo(Furniture o) {
        return o.furnitureId-this.furnitureId;
    }
}